﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ArticleEdit.aspx.cs" Inherits="Web.SysManage.Article.ArticleEdit" %>
<%@ Register TagPrefix="QX" Namespace="QXBook.Controls.HtmlControls" Assembly="QXBook.Controls" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
	<link href="../css/adminlist.css" rel="stylesheet" type="text/css" />
	<link href="../css/admininfo.css" rel="stylesheet" type="text/css" />
	<link href="../css/layer.css" rel="stylesheet" type="text/css" />
	<link href="../css/enmu.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jquery.1.3.2.js"></script>
	<script type="text/javascript" src="../js/jquery.form.js"></script>
    <script type="text/javascript" src="../js/commonV2.js"></script>
	<script type="text/javascript" src="../js/newscommon.js"></script>
	<script type="text/javascript" src="../js/enmu.js"></script>
    <script type="text/javascript" src="../js/layer.js"></script>
	<script type="text/javascript" src="../js/MenuDiv.js"></script>
</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data">
    <input type="hidden" id="hArticleID" name="hArticleID" runat="server"/>
    <script type="text/javascript">
        var objss = ["a1", "a2"];
    </script>
    <QX:AjaxDiv ID="AjaxDiv1" runat="server" />
    <div class="page_title" style="margin-bottom:5px;">
		<a href="#" class="tnew" onmouseover="this.className='tnew nbg'" onmouseout="this.className='tnew'" onclick="SaveNewsInfo();">
			<img src="../images/icon/save.gif" /> 保存
		</a>
		<a href="javascript:GoTo();" class="tnew" onmouseover="this.className='tnew nbg'" onmouseout="this.className='tnew'" onclick="javascript:window.history.back();">
			<img src="../images/icon/5.gif" />取消
		</a>
        <a href="javascript:GoTo();" class="tnew" onmouseover="this.className='tnew nbg'" onmouseout="this.className='tnew'" onclick="refinsh();">
			<img src="../images/icon/07.gif" />刷新
		</a>
	</div>
    <div class="g-tabnav">
        <a style="margin-left:-13px;"></a>
        <a id="a1" onclick="SetFromsByNum('a1')">基本信息</a>
        <a id="a2" onclick="SetFromsByNum('a2')">详细内容</a>
    </div>
    <div id="a1_from">
	    <div class="Page_arrb arb_pr1">
		    <span class="p_a_t1">资讯标题：</span>
            <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="iTitle" Display="Dynamic" ErrorMessage="<div style='bgcolor:#BBB'><img src='../images/post_err.gif'>资讯标题内容，不能为空</div>"></asp:RequiredFieldValidator>
            <input id="iTitle" runat="server" type="text" class="itxt1" onfocus="this.className='itxt2'"  style="width:400px;" onblur="CheckValueIsNull('iTitle','titlemsg');"/>
		    <span class="info1" id="titlemsg">*资讯标题内容，不能为空</span>
	    </div>
        <div class="Page_arrb arb_pr1">
		    <span class="p_a_t1 lfl">栏目： </span>
		    <span class="p_a_t1 lfl">
		    <div class="cagegoriesSelect">
                <asp:DropDownList ID="ddlPart" runat="server" AutoPostBack="true">
                </asp:DropDownList>
		    </div>
		    </span>
		    <span class="info1" id="Span1" style=" margin-left:210px;">所属栏目，不能为空</span>
	    </div>
	    <div class="Page_arrb arb_pr1">
		    <span class="p_a_t1 lfl">资讯类别： </span>
		    <span class="p_a_t1 lfl">
		    <div class="cagegoriesSelect">
		        <select id="selCategory" runat="server">
                </select>
		    </div>
		    </span>
		    <span class="info1" id="classmsg" style=" margin-left:210px;">资讯所属的分类，不能为空</span>
	    </div>
	    <div class="Page_arrb arb_pr1">
		    <span class="p_a_t1">资讯作者：</span>
            <input id="iAuthor" runat="server" type="text" class="itxt1" onfocus="this.className='itxt2'" onblur="CheckValueIsNull('iAuthor','autmsg');"/>
		    <span class="info1" id="autmsg">资讯作者，能为空</span>
	    </div>
	    <div class="Page_arrb arb_pr1">
		    <span class="p_a_t1">关 键 字：</span>
            <input id="iKeyWords" runat="server" type="text" class="itxt1" onfocus="this.className='itxt2'" onblur="CheckValueIsNull('iKeyWords','keymsg');" style="width:400px;"/>
		    <span class="info1" id="keymsg">资讯的关键词, 能为空</span>
	    </div>
	    <div class="Page_arrb arb_pr1">
            <input type="file" name="iFile" class="itxt1" onfocus="this.className='itxt2'"  />
            <img src="../images/icon/fj.gif" alt="上传图片" /> 
            <a href="javascript:GoTo();"  onclick="SelectBigImg(this)">上传图片</a>
            <asp:PlaceHolder ID="phIMG" runat="server">
            <div>重新上传会覆盖原有图片</div>
            <table>
            <tr>
            <td>小图</td>
            <td>大图</td>
            </tr>
            <tr>
            <td><asp:Image ID="imgSmall" runat="server" /></td>
            <td><asp:Image ID="imgNomarl" runat="server" /></td>
            </tr>
            </table>
            </asp:PlaceHolder>
	    </div>
        <div class="Page_arrb arb_pr1">
		    <textarea id="taShortContent" runat="server" class="itxt1" onfocus="this.className='itxt2'" onblur="CheckValueIsNull('iKeyWords','keymsg');" style="width:800px; height:80px; margin-top:5px;"/>
	    </div>
    </div>
    <div id="a2_from">
	    <div class="Page_arrb arb_pr1">
		    <script type="text/javascript" src="../KindEditer/kindeditor-min.js"></script>
                <script type="text/javascript">
                    KE.show({
                        id: 'taContent',
                        imageUploadJson: '/SysManage/Upload/Uploadfiles.aspx',
                        fileManagerJson: '/SysManage/Upload/FileManager.aspx',
                        allowFileManager: true,
                        afterCreate: function (id) {
                            KE.event.ctrl(document, 13, function () {
                                KE.util.setData(id);
                                document.forms['form1'].submit();
                            });
                            KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
                                KE.util.setData(id);
                                document.forms['form1'].submit();
                            });
                        }
                    });
            </script>
            <textarea id="taContent" cols="100" rows="8" style="width:800px;height:300px;visibility:hidden;" runat="server"></textarea>
	    </div>
    </div>
	<div class="dobtn arb_pr1 Page_arrb" style="margin-top:5px;">
        <asp:Button ID="btnSave" runat="server" CssClass="btn2 bold" Text="确定" />　　　<input type="reset" class="btn2" value="取消" />
    </div>
    <script type="text/javascript">
        SetFromsByNum("a1");
    </script>
    </form>
</body>
</html>
